import _http from '@/utils/http'

export default {
    haibaoList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/detail/list',
            apiName: '海报列表',
        }, params, loading, headers)
    },

    haibaoInfo(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/detail/info',
            apiName: '海报详情',
        }, params, loading, headers)
    },

    haibaoAdd(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/detail/add',
            apiName: '海报新增',
        }, params, loading, headers)
    },

    haibaoDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/detail/delete',
            apiName: '海报删除',
        }, params, loading, headers)
    },

    haibaoTypeList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/type/list',
            apiName: '栏目列表',
        }, params, loading, headers)
    },

    haibaoTypeAdd(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/type/add',
            apiName: '栏目新增',
        }, params, loading, headers)
    },

    haibaoTypeDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/type/delete',
            apiName: '栏目删除',
        }, params, loading, headers)
    },

    haibaoTypeModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/haibao/type/modify',
            apiName: '栏目修改',
        }, params, loading, headers)
    },
}
